<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        <script src="js/time.js?"></script>
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
                <tr><td><?= translate('CDKEY_KEYTYPE') ?>:</td><td><?= $row['keytype']?></td></tr>
               
                <tr><td><?= translate('CDKEY_STARTTIME') ?>:</td><td><input type="text" name="row[starttime]" id="starttime" readonly size="25" value="<?= $row['starttime']?>" onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss',0,10)" showtime="true" /></td></tr>
                <tr><td><?= translate('CDKEY_ENDTIME') ?>:</td><td><input type="text" name="row[endtime]" id="endtime" readonly size="25" value="<?= $row['endtime']?>" onclick="SelectDate(this,'yyyy-MM-dd hh:mm:ss',0,10)" showtime="true" /></td></tr>
                
                <tr><td><?= translate('CDKEY_REWARDOBJECT') ?>:</td><td><?= $row['rewardobjectid']?></td></tr>

                <tr><td></td><td><input type="submit" value="<?= translate('SUBMIT') ?>" id="submit"/></td></tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#starttime").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#endtime").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#rewardobjectid").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_ONLY_NUM') ?>'});
            });
        </script>
    </body>
</html>